from calc_manager.plugins_inner.bdf_reader_inner import BDFReader
from calc_manager.plugins_inner.op2_reader_inner import OP2Reader
from calc_manager.plugins_inner.mat_csv_inner import MatCSVReader
from calc_manager.plugins_inner.bdf_transformer_inner import BDFTransformer
from pydantic import BaseModel
from typing import List, Dict

class Parameter(BaseModel):
    rough_eids: List[float]
    refine_eids: List[float]

class Result(BaseModel):
    fatigue_infos: Dict[int, int]    #满足疲劳性能要求  单元id:最危险疲劳循环次数
    no_fatigue_infos: Dict[int, int] #满足不疲劳性能要求  单元id:最危险疲劳循环次数


def check_fatigue(eid, bdf_reader: BDFReader, op2_reader: OP2Reader):
    return


def second(param: Parameter, bdf_reader: BDFReader, bdf_transformer: BDFTransformer, op2_reader: OP2Reader) :
    print("step2-----------------> start")

    return
